package com.tuanzi.loan.business.entity.family;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * User: liangZongXi
 * Create time: 17:08 2018/8/31
 * Description:
 */
@Data
@Entity
@Table(name = "loan_new_advert_credit_card")
@EqualsAndHashCode(callSuper = true)
public class LoanNewAdvertCreditCard extends AuditEntity {

    private static final long serialVersionUID = -4825981863323296647L;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @Column(name = "advert_id")
    @NotNull
    private Integer advertId ;
    @Column(name = "card_id")
    @NotNull
    private Long cardId;
    @Column(name = "platform")
    @NotBlank
    private String platform;
    @Column(name = "prdid")
    @NotBlank
    private String prdid;
    @Column(name = "channel")
    @NotBlank
    private String channel;
    @Column(name = "online_time")
    private Date onlineTime;
    @Column(name = "offline_time")
    private Date offlineTime;
    @Column(name = "status")
    private Integer status;
    @Column(name = "redirect_type")
    private Integer redirectType;
    @Column(name = "fixed_online_time")
    private Date fixedOnlineTime;
    @Column(name = "fixed_offline_time")
    private Date fixedOfflineTime;
    @Column(name = "upper_limit")
    private Integer upperLimit;
    @Column(name = "sort")
    private Integer sort;
    @Column(name = "remark")
    private String remark;
}
